﻿let shop_username=localStorage.getItem('shopname')
const front = [
    {
        path: '/shop/:domainname',
        component: () => import('@/view/frontshop/shop.vue'),
        name: 'shopindex',
        meta: {
            title: shop_username,
            device: 'mobile'
        }
    },
    {
        path: '/xuejing/category/:domainname',
        component: () => import('@/view/frontshop/category.vue'),
        meta: {
            title: '课程分类',
            device: 'mobile'
        }
    },
    {
        path: '/xuejing/shopcart/:domainname',
        component: () => import('@/view/frontshop/shopcart.vue'),
        name:"shopcart",
        meta: {
            title: '购物车',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/my/:domainname',
        component: () => import('@/view/frontshop/my.vue'),
        name: 'my',
        meta: {
            title: '我',
            device: 'mobile'
        }
    },
    {
        path: '/xuejing/product/:domainname',
        name: 'product',
        component: () => import('@/view/frontshop/product.vue'),
        meta: {
            title: '视频详情列表页',
            device: 'mobile'
        }
    },
    {
        path:'/xuejing/downfiles/:domainname',
        name: 'downfiles',
        component: () => import('@/view/frontshop/downfiles.vue'),
        meta: {
            title: '专栏文件下载列表页',
            verify: true,
            device: 'mobile'
        }
    },
    {
        path: '/xuejing/image_textcontent/:domainname',
        name: 'image_textcontent',
        component: () => import('@/view/frontshop/image_textcontent.vue'),
        meta: {
            title: '图文内容页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/audiocontent/:domainname',
        name: 'audiocontent',
        component: () => import('@/view/frontshop/audiocontent.vue'),
        meta: {
            title: '音频内容页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/videocontent/:domainname',
        name: 'videocontent',
        component: () => import('@/view/frontshop/videocontent.vue'),
        meta: {
            title: '视频内容页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/livecontent/:domainname',
        name: 'livecontent',
        component: () => import('@/view/frontshop/livecontent.vue'),
        meta: {
            title: '直播内容页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/order/:domainname',
        name: 'order',
        component: () => import('@/view/frontshop/order.vue'),
        meta: {
            title: '提交专栏订单页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/orderone/:domainname',
        name: 'orderone',
        component: () => import('@/view/frontshop/orderone.vue'),
        meta: {
            title: '提交单个知识订单页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/orderoneexam/:domainname',
        name: 'orderoneexam',
        component: () => import('@/view/frontshop/orderoneexam.vue'),
        meta: {
            title: '提交试卷订单页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/ordermore/:domainname',
        name: 'ordermore',
        component: () => import('@/view/frontshop/ordermore.vue'),
        meta: {
            title: '提交多个订单页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/pay/:domainname',
        name: 'pay',
        component: () => import('@/view/frontshop/pay.vue'),
        meta: {
            title: '付款页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/paymore/:domainname',
        name: 'paymore',
        component: () => import('@/view/frontshop/paymore.vue'),
        meta: {
            title: '付款页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人中心订单的路由
    {
        path: '/xuejing/myallorders/:domainname',
        name: 'myallorders',
        component: () => import('@/view/frontshop/myAllOrders.vue'),
        meta: {
            title: '全部订单',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人中心注册的路由
    {
        path: '/xuejing/myregister/:domainname',
        name: 'myregister',
        component: () => import('@/view/frontshop/myregister.vue'),
        meta: {
            title: '注册',
            device: 'mobile',
        }
    },
    //个人中心退货查看详情的路由
    {
        path: '/xuejing/myallorders/refund/:domainname',
        name: 'refund',
        component: () => import('@/view/frontshop/myrefund.vue'),
        meta: {
            title: '退货详情页',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人中心注册的路由
    {
        path: '/xuejing/myallorders/drawback/:domainname',
        name: 'drawback',
        component: () => import('@/view/frontshop/mydrawback.vue'),
        meta: {
            title: '提交退款订单',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //评论
    {
        path: '/xuejing/my/chat/:domainname',
        name: 'chat',
        component: () => import('@/view/frontshop/chat.vue'),
        meta: {
            title: '聊天',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //评论
    {
        path: '/xuejing/myallorders/evaluate/:domainname',
        name: 'evaluate',
        component: () => import('@/view/frontshop/myevaluate.vue'),
        meta: {
            title: '评论',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人的优惠券
    {
        path: '/xuejing/my/coupon/:domainname',
        name: 'coupon',
        component: () => import('@/view/frontshop/myCoupon.vue'),
        meta: {
            title: '优惠券',
            device: 'mobile',
            verify: true //需要登录
        }
    },
	// //个人的优惠券(新)
	// {
	//     path: '/xuejing/my/couponNew/:domainname',
	//     name: 'couponNew',
	//     component: () => import('@/view/frontshop/myCoupon.vue'),
	//     meta: {
	//         title: '优惠券',
    //         device: 'mobile',
	//         verify: true //需要登录
	//     }
	// },
    //个人的已购买
    {
        path: '/xuejing/my/purchased/:domainname',
        name: 'purchased',
        component: () => import('@/view/frontshop/mypurchased.vue'),
        meta: {
            title: '已购',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人的账户
    {
        path: '/xuejing/my/account/:domainname',
        name: 'account',
        component: () => import('@/view/frontshop/myaccount.vue'),
        meta: {
            title: '账户余额',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //个人的收藏
    {
        path: '/xuejing/my/collect/:domainname',
        name: 'collect',
        component: () => import('@/view/frontshop/mycollect.vue'),
        meta: {
            title: '我的收藏',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //账号设置
    {
        path: '/xuejing/my/accountnumber/:domainname',
        name: 'AccountNumber',
        component: () => import('@/view/frontshop/myAccountNumber.vue'),
        meta: {
            title: '账号设置',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //修改账号
    {
        path: '/xuejing/my/accountnumber/ANnickname/:domainname',
        name: 'ANnickname',
        component: () => import('@/view/frontshop/myANnickname.vue'),
        meta: {
            title: '修改账号',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //修改手机号
    {
        path: '/xuejing/my/accountnumber/ANphone/:domainname',
        name: 'ANphone',
        component: () => import('@/view/frontshop/myANphone.vue'),
        meta: {
            title: '修改手机',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //打卡
    {
        path: '/xuejing/my/signin/:domainname',
        name: 'signin',
        component: () => import('@/view/frontshop/mysignin.vue'),
        meta: {
            title: '打卡',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //我的课程
    {
        path: '/xuejing/my/course/:domainname',
        name: 'course',
        component: () => import('@/view/frontshop/mycourse.vue'),
        meta: {
            title: '我的课程',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //圈子
    {
        path: '/xuejing/my/circle/:domainname',
        name: 'circle',
        component: () => import('@/view/frontshop/mycircle.vue'),
        meta: {
            title: '圈子',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //学习中心
    {
        path: '/xuejing/my/learningCenter/:domainname',
        name: 'learningCenter',
        component: () => import('@/view/frontshop/mylearningCenter.vue'),
        meta: {
            title: '学习中心',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //兑换中心
    {
        path: '/xuejing/my/exchange/:domainname',
        name: 'exchange',
        component: () => import('@/view/frontshop/myexchange.vue'),
        meta: {
            title: '兑换中心',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //请好友看
    {
        path: '/xuejing/my/invite/:domainname',
        name: 'invite',
        component: () => import('@/view/frontshop/invite.vue'),
        meta: {
            title: '请好友看',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //赠送记录
    {
        path: '/xuejing/my/presented/:domainname',
        name: 'presented',
        component: () => import('@/view/frontshop/myPresented.vue'),
        meta: {
            title: '赠送记录',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //推广中心
    {
        path: '/xuejing/my/promotion/:domainname',
        name: 'promotion',
        component: () => import('@/view/frontshop/mypromotion.vue'),
        meta: {
            title: '推广中心',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    //我的奖品
    {
        path: '/xuejing/my/award/:domainname',
        name: 'award',
        component: () => import('@/view/frontshop/myaward.vue'),
        meta: {
            title: '我的奖品',
            device: 'mobile',
            verify: true //需要登录
        }
    },

    {
        path: '/xuejing/frontrefresh/:domainname',
        component: (resolve) => require(['@/view/refresh/frontrefresh.vue'], resolve),
        name: 'frontrefresh',
        meta: {
            title: '用于前端同路由刷新',
            device: 'mobile',
        }
    },
    {
        path: '/xuejing/search/:domainname',
        component: () => import('@/view/frontshop/search.vue'),
        name: 'search',
        meta: {
            title: '搜索列表',
            device: 'mobile',
        }
    },
    {
        path: '/xuejing/searchlist/:domainname',
        component: () => import('@/view/frontshop/searchlist.vue'),
        name: 'searchlist',
        meta: {
            title: '搜索列表',
            device: 'mobile',
        }
    },
    {
        path: '/xuejing/ordersearchlist/:domainname',
        component: () => import('@/view/frontshop/ordersearchlist.vue'),
        name: 'ordersearchlist',
        meta: {
            title: '订单搜索列表',
            device: 'mobile',
            verify: true //需要登录
        }
    },
    {
        path: '/xuejing/moresearchlist/:domainname',
        component: () => import('@/view/frontshop/moresearchlist.vue'),
        name: 'moresearchlist',
        meta: {
            title: '更多搜索列表',
            device: 'mobile',
        }
    },
    {
        path: '/xuejing/morelivelist/:domainname',
        component: () => import('@/view/frontshop/morelivelist.vue'),
        name: 'morelivelist',
        meta: {
            title: '更多直播列表',
            device: 'mobile',
        }
    },
    {
        path: '/xuejing/morecolumnlist/:domainname',
        component: () => import('@/view/frontshop/morecolumnlist.vue'),
        name: 'morecolumnlist',
        meta: {
            title: '更多专栏列表',
            device: 'mobile',
        }
    },
	{
	    path: '/xuejing/moreknowledgelist/:domainname',
	    component: () => import('@/view/frontshop/moreknowledgelist.vue'),
	    name: 'moreknowledgelist',
	    meta: {
	        title: '更多课程列表',
            device: 'mobile',
	    }
	},
    {
        path:'/xuejing/test4/:domainname',
        component:()=>import('@/view/frontshop/test4.vue'),
        meta:{
            title:'测试',
            device: 'mobile',
        }
    },
    {
        path:'/xuejing/examcontent/:domainname',
        name:'examcontent',
        component:()=>import('@/view/frontshop/examcontent.vue'),
        meta:{
            title:'考试系统',
            device: 'mobile',
            verify:true
        }
    },
	
	{
	    path:'/xuejing/exampreview/:domainname',
	    name:'exampreview',
	    component:()=>import('@/view/frontshop/exampreview.vue'),
	    meta:{
	        title:'试卷预览',
            device: 'mobile',
	        verify:true
	    }
	},
	
	{
	    path:'/xuejing/answerdetail/:domainname',
	    name:'answerdetail',
	    component:()=>import('@/view/frontshop/answerdetail.vue'),
	    meta:{
	        title:'答题详情',
            device: 'mobile',
	        verify:true
	    }
	},
	
    {
        path:'/xuejing/kefuchat/:domainname',
        component:()=>import('@/view/frontshop/kefuchat.vue'),
        name:"kefuchat",
        meta:{
            title:'客服聊天框',
            device: 'mobile',
            verify:true
        }
    },
    {
        path:'/xuejing/withdraw/:domainname',
        component:()=>import('@/view/frontshop/myAcWithdraw.vue'),
        name:"withdraw",
        meta:{
            title:'提现',
            device: 'mobile',
            verify:true
        }
    },
    {
        path:'/xuejing/withdraw/rule/:domainname',
        component:()=>import('@/view/frontshop/myAcWdRule.vue'),
        name:"rule",
        meta:{
            title:'提现规则',
            device: 'mobile',
        }
    },
    {
        path:'/xuejing/ticket/:domainname',
        component:()=>import('@/view/frontshop/ticket.vue'),
        name:"ticket",
        meta:{
            title:'优惠券',
            device: 'mobile',
            verify:true
        }
    },
    {
        path:'/xuejing/imgchange/:domainname',
        component:()=>import('@/view/frontshop/imgchange.vue'),
        name:"imgchange",
        meta:{
            title:'换头像',
            device: 'mobile',
            verify:true
        }
    },
    {
        path:'/test7',
        component:()=>import('@/view/frontshop/test7.vue'),
        name:"test7",
        meta:{
            title:'手机端客服',
            device: 'mobile',
            verify:true
        }
    },
    {
        path: '/xuejing/share_detail/:domainname',
        name: 'share_detail',
        component: () => import('@/view/frontshop/share_detail.vue'),
        meta: {
            title: '拼团商品详情',
            device: 'mobile',
            verify: true //需要登录
        }
    },
];

export default front;
